package com.utils2;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.Date;

/**
 * @author LWY
 */
@Data
@NoArgsConstructor
public class Province {
    String provinceName;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    Date createTime;
    int total;
    ArrayList<City> cityArrayList;


// 构造函数，用于创建Province对象
    public Province(String provinceName, Date createTime, int total,ArrayList<City> cityArrayList) {
        // 设置省份名称
        this.provinceName= provinceName;
        // 设置创建时间
        this.createTime = createTime;
        // 设置总人数
        this.total = total;
        // 设置城市列表
        this.cityArrayList = cityArrayList;
    }


}
